package com.sinog.front.feign.biz;

import com.sinog.core.model.UserDTO;
import com.sinog.core.utilbean.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @desc 预安置管理 - 推送记录
 * @author wangxj
 * @date 2022/9/3 11:11
 */
@FeignClient("sinog2c-biz")
public interface PrisonerTsService {

    /**
     * 获取推送信息
     * @param id 核查信息编号
     * @param userDTO 当前登录用户对象
     * @return Result
     */
    @RequestMapping("/azbj/ts/searchBaseInfoByPriNum")
    Result searchBaseInfoByPriNum(@RequestParam("id") String id,
                              @RequestBody UserDTO userDTO);

    /**
     * 根据推送编号获取推送信息
     * @param id 核查信息编号
     * @return Result
     */
    @RequestMapping("/azbj/ts/searchBaseInfoById")
    Result searchBaseInfoById(@RequestParam("id") String id);
}